import httpInstance from './requestConfig'

export function getMainMenu() {
    return httpInstance({
        url:"/main_menu",
    })
}

export function getSecondMenu(mainMenuId) {
    return httpInstance({
        url:'/sub_menu?main_menu_id=' + mainMenuId
    })
}

export function getFindGoods() {
    return httpInstance({
        url:'/goods/find'
    })
}

export function getCategoryGoods(categoryId,page) {
    return httpInstance({
        url:`/goods/category/${categoryId}/${page}`
    })
}
